package fr.upmc.alasca.centreCalcul.interne.machinePhysique.coeur.ports;


import fr.upmc.alasca.centreCalcul.interne.machinePhysique.coeur.interfaces.CoeurOperateurI;
import fr.upmc.alasca.centreCalcul.objets.EtatCoeur;
import fr.upmc.components.ComponentI;
import fr.upmc.components.ports.AbstractOutboundPort;

public class CoeurOperateurOutboundPort 
extends		AbstractOutboundPort
implements CoeurOperateurI
{
	public	CoeurOperateurOutboundPort
	(
		String uri,
		ComponentI owner
	) throws	Exception
	{
		super(uri,CoeurOperateurI.class,owner);
	}




	@Override
	public EtatCoeur getEtat() throws Exception {
		return ((CoeurOperateurI)this.connector).getEtat();
	}

	@Override
	public String getUriApplication() throws Exception {
		return ((CoeurOperateurI)this.connector).getUriApplication();
	}

	@Override
	public float getFrequence() throws Exception {
		return ((CoeurOperateurI)this.connector).getFrequence();
	}
	
	@Override
	public boolean aReservationFrequenceEnCours() throws Exception {
		return ((CoeurOperateurI)this.connector).aReservationFrequenceEnCours();
	}
	
	@Override
	public float getFrequenceReservee() throws Exception {
		return ((CoeurOperateurI)this.connector).getFrequenceReservee();
	}

	@Override
	public void reserverCoeur(String uriApplication) throws Exception {
		((CoeurOperateurI)this.connector).reserverCoeur(uriApplication);
	}

	@Override
	public void dereserverCoeur() throws Exception {
		((CoeurOperateurI)this.connector).dereserverCoeur();
	}

	@Override
	public void allouerCoeur(String uriMachineVirtuelle) throws Exception {
		((CoeurOperateurI)this.connector).allouerCoeur(uriMachineVirtuelle);
	}

	@Override
	public void desallouerCoeur() throws Exception {
		((CoeurOperateurI)this.connector).desallouerCoeur();
	}

	@Override
	public float reserverFrequence(float frequence) throws Exception {
		return ((CoeurOperateurI)this.connector).reserverFrequence(frequence);
	}

	@Override
	public void changerFrequence() throws Exception {
		((CoeurOperateurI)this.connector).changerFrequence();
	}
}
